package com.zk.fm.entity;

import java.util.Hashtable;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

public class User implements KvmSerializable {
	private String account;

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	private String password;

	@Override
	public Object getProperty(int arg0) {
		switch (arg0) {
		case 0:
			return account;
		case 1:
			return password;
		}
		return null;
	}

	@Override
	public int getPropertyCount() {
		return 2;
	}

	@SuppressWarnings("rawtypes")
	@Override
	public void getPropertyInfo(int index, Hashtable arg1, PropertyInfo info) {
		switch (index) {
		case 0:
			info.type = PropertyInfo.STRING_CLASS;
			info.name = "account";
			break;
		case 1:
			info.type = PropertyInfo.STRING_CLASS;
			info.name = "password";
			break;
		default:
			break;
		}
	}

	@Override
	public void setProperty(int index, Object value) {
		switch (index) {
		case 0:
			account = value.toString();
			break;
		case 1:
			password = value.toString();
			break;
		default:
			break;
		}
	}

}
